package com.es.www;

import java.util.HashMap;
import java.util.Map;

import com.sun.org.apache.xpath.internal.operations.Or;

/**
 * @Created by michangtao
 * @Date 2022/5/19 15:04
 * @Description
 */
public class Client {

    public static void main(String[] args) {
//        ICoffee coffee = new OriginalCoffee();
//        coffee.makeCoffee();
//        System.out.println("-----------");
//
//        coffee = new MilkDecorator(coffee);
//        coffee.makeCoffee();
//        System.out.println("-----------");
//
//        coffee = new SugarDecorator(coffee);
//        coffee.makeCoffee();
//        System.out.println("-----------");

        Map<Integer, Object> map = new HashMap<>();
        map.put(1, 1);
        map.put(2, 2);
        map.put(3, 3);

        Map<Integer, Object> childMap = new HashMap<>();
        childMap.put(5,5);
        map.putAll(childMap);
        System.out.println(map);
    }
}
